import quest from "../utils/http";

export function Login({username, password}) {
    console.log('发起登录请求:', {username, password});
    return quest.post('/api/login',{username,password})
        .then(response => {
            console.log('登录请求响应:', response);
            return response;
        })
        .catch(error => {
            console.error('登录请求出错:', error);
            throw error;
        });
}